package com.tdkj.model.shop;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * ShopRecommendations entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_shop_recommendation_use_info")
public class BeanShopRecommendationUseInfo extends BaseEntity {

	private BeanShop shop;
	private Long limitTime;
	//0,1
	private Integer state;
	private BeanShopRecommendationType type;

	@OneToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="shop_id")
	public BeanShop getShop() {
		return shop;
	}

	public void setShop(BeanShop shop) {
		this.shop = shop;
	}

	public Long getLimitTime() {
		return limitTime;
	}

	public void setLimitTime(Long limitTime) {
		this.limitTime = limitTime;
	}

	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="type_id")
	public BeanShopRecommendationType getType() {
		return type;
	}

	public void setType(BeanShopRecommendationType type) {
		this.type = type;
	}

	public Integer getState() {
		return state;
	}
	
	public void setState(Integer state) {
		this.state = state;
	}



}